package com.cy.pj.dao;

import com.cy.pj.NoticeJdbcTemplateDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import javax.sql.DataSource;
import java.sql.SQLException;

@Repository
public class NoticeJdbcTemplateDaoImpl implements NoticeJdbcTemplateDao {
    private DataSource dataSource;
    @Autowired
    private JdbcTemplate jdbcTemplate;

    @Override
    public void updateNotice(String sql, Object[] values) throws SQLException {
        jdbcTemplate.update(sql,values);
    }
}
